package com.lhz.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.lhz.pojos.Good;
import com.lhz.pojos.GoodsType;

public interface GoodDao extends JpaSpecificationExecutor<Good>,JpaRepository<Good, Integer> {
	Good findByGoodsName(String goodsName);
	List<Good> findByGoodsType(GoodsType goodsType);
}
